package com.shangjun;

import java.util.Scanner;

/**
 * Created by sahngjun on 2017/3/25.
 */
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] tx = new int[n];
        int[] ty = new int[n];
        for (int i = 0;i<n;i++){
            tx[i] = sc.nextInt();
        }
        for (int i = 0;i<n;i++){
            ty[i] = sc.nextInt();
        }
        int gx = sc.nextInt();
        int gy = sc.nextInt();
        int walkTime = sc.nextInt();
        int taxiTime = sc.nextInt();




        int AllWalkTime = getALlWalkTime(gx,gy,walkTime);
        int temp1 = 0;
        int temp2 = 0;
        for (int j=0;j<n;j++){
            int taxiX = tx[j];
            int taxiY = ty[j];
            temp1 = (Math.abs(taxiX)+Math.abs(taxiY))*walkTime + (Math.abs(gx)-Math.abs(taxiX))*taxiTime + (Math.abs(gy)-Math.abs(taxiY))*taxiTime;
            if(j==0){
                temp2=temp1;
            }
            if (temp1<temp2) {
                temp2 = temp1;
            }
        }
        int allTime = temp2+AllWalkTime;
        System.out.println(allTime);
    }
    public static int getALlWalkTime(int gx,int gy,int walkTime){
        int AllWalkTime = (Math.abs(gx)+Math.abs(gy)) * walkTime;
        return AllWalkTime;
    }

}
